package com.gsh.service.impl;

import com.gsh.dao.UserMapper;
import com.gsh.pojo.User;
import com.gsh.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IUserServiceImpl implements IUserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> queryUserList() {
        return userMapper.queryUserList();
    }

    @Override
    public int queryBypw(String username,String password) {
        return userMapper.queryBypw(username,password);
    }

    @Override
    public int addUser(User user) {
        return userMapper.addUser(user);
    }
}
